package com.claims

import com.claims.code.Level
import com.claims.code.Branch
import com.claims.code.Department

class Employee extends Person {

    String employeeId
    Level level
    User user
    Department department
    Branch branch

    static belongsTo = [Level, User]
    static hasMany = [dependants: Dependant, claims: Claim]

    static constraints = {
    }

    static mapping = {
      sort name:'asc'
    }

    public String toString(){
      return "${employeeId}:${name}"
    }
}
